import request from '@/utils/request'

// 查询抽水记录列表
export function listAgentPumpRecord(query) {
  return request({
    url: '/system/AgentPumpRecord/list',
    method: 'get',
    params: query
  })
}

// 查询抽水记录详细
export function getAgentPumpRecord(id) {
  return request({
    url: '/system/AgentPumpRecord/' + id,
    method: 'get'
  })
}

// 新增抽水记录
export function addAgentPumpRecord(data) {
  return request({
    url: '/system/AgentPumpRecord',
    method: 'post',
    data: data
  })
}

// 修改抽水记录
export function updateAgentPumpRecord(data) {
  return request({
    url: '/system/AgentPumpRecord',
    method: 'put',
    data: data
  })
}

// 删除抽水记录
export function delAgentPumpRecord(id) {
  return request({
    url: '/system/AgentPumpRecord/' + id,
    method: 'delete'
  })
}

// 导出抽水记录
export function exportAgentPumpRecord(query) {
  return request({
    url: '/system/AgentPumpRecord/export',
    method: 'get',
    params: query
  })
}